package com.tz.crm.service.impl;

import com.tz.crm.dao.RoleDao;
import com.tz.crm.entity.Role;
import com.tz.crm.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * RoleServiceImpl 服务类
 * 服务于用户角色的增删改查
 */
@Service
@Transactional
public class RoleServiceImpl extends BaseServiceImpl<Role, String> implements RoleService {

    /**
     * 有参构造
     *
     * @param roleDao 注入的组件
     */
    @Autowired
    public RoleServiceImpl(RoleDao roleDao) {
        super.setBaseDao(roleDao);
    }

}
